/**
 * 自定义指令
 */
import permission from './permission';

const directivesList = {
  permission, // 挂载
};

export default {
  install(Vue) {
    Object.keys(directivesList).forEach((key) => {
      Vue.directive(key, directivesList[key]); // 注册
    });
  },
};
